package com.example.user;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.example.user.dao")
@EnableFeignClients
public class UsianLeadnewsUserApplication {

	public static void main(String[] args) {
		SpringApplication.run(UsianLeadnewsUserApplication.class, args);
	}


	@Bean
	public PaginationInterceptor getPaginationInterceptor(){
		return new PaginationInterceptor();
	}

}
